package com.swk.common.exception;

/**
 * Created by Administrator on 2018-3-31.
 */
public class SwkExceptionTrace {
    public static String getAllInfo(Throwable e) {
        StringBuffer stackTrace = new StringBuffer();
        StackTraceElement[] trace = e.getStackTrace();
        for (StackTraceElement s : trace) {
            stackTrace.append("\tat ");
            stackTrace.append(s);
            stackTrace.append("\r\n");
        }
        return stackTrace.toString();
    }
}
